package com.talktalk.entity;

import java.io.Serializable;
import java.util.Date;

public class Message implements Serializable{
	private String from;
	private long currentTime;
	private String message;
	private String to;//接收方的uid
	
	public Message() {
	}
	public Message(String from, long currentTime, String message, String to) {
		super();
		this.from = from;
		this.currentTime = currentTime;
		this.message = message;
		this.to = to;
	}
	public long getCurrentTime() {
		return currentTime;
	}
	public void setCurrentTime(long currentTime) {
		this.currentTime = currentTime;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getTo() {
		return to;
	}
	public void setTo(String to) {
		this.to = to;
	}
	@Override
	public String toString() {
		return "Message [from=" + from + ", currentTime=" + currentTime + ", message=" + message + ", to=" + to + "]";
	}
	
	
}
